package com.efast.dmom.equipment.statemach.handler.maintain;

import com.alibaba.fastjson.JSONObject;
//import com.efast.cafe.commponent.statemach.annotation.StatemachHandle;
//import com.efast.cafe.commponent.statemach.base.HandleBaseProcessorService;
import com.efast.cafe.framework.jdbc.JdbcDao;
import com.efast.dmom.equipment.entity.EquipMaintainOrder;
import com.efast.dmom.equipment.statemach.handler.base.HandleBaseProcessorService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Map;

@Component
//@StatemachHandle(handleName="complete",configId=1020,entityName ="equip_maintain_order")
public class EquipMaintainOrderCompleteHandler implements HandleBaseProcessorService<EquipMaintainOrder> {


    @Autowired
    private JdbcDao jdbcDao;
    @Override
    public void process(JSONObject taskBean, EquipMaintainOrder bean, Map<String,JSONObject> map) {
        //设置实际完成时间
        bean.setActuralEndTime(new Date());
    }
}
